package com.md.work;

public class Demo06 {

	public static void main(String[] args) {

		
		int [] a = {19,28,37,46,50};

		int d[]=getsz(a);
		System.out.print("[");
		for (int i = 0; i < d.length; i++) {
			System.out.print(d[i]+",");
		}
		System.out.print("]");
	}
	
	public static int[] getsz(int[] b) {
		int[] c = new int [5];
		for (int i = 0; i < b.length; i++) {
			c[i] = b[b.length-i-1];
		}
		return c;
		
	}

}
